using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;

namespace MineFlagger
{
	/// <summary>
	/// Summary description for ConfoundsDialog.
	/// </summary>
	public class ConfoundsDialog : System.Windows.Forms.Form {

		private MineFlagger.ConfoundsControl confoundsControl1;
		private System.ComponentModel.Container components = null;

		public ConfoundsDialog(string formText, ResultingConfoundsConfig rcConfig)	{
			InitializeComponent();

			this.Text = formText;
			confoundsControl1.ResultingConfoundsConfig = rcConfig;
			
		}

		public string numRecursionLimit {
			get { return confoundsControl1.numRecursionLimit.Text; }
			set { confoundsControl1.numRecursionLimit.Text = value; }
		}

		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if(components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			this.confoundsControl1 = new MineFlagger.ConfoundsControl();
			this.SuspendLayout();
			// 
			// confoundsControl1
			// 
			this.confoundsControl1.Location = new System.Drawing.Point(10, 8);
			this.confoundsControl1.Name = "confoundsControl1";
			this.confoundsControl1.Size = new System.Drawing.Size(202, 67);
			this.confoundsControl1.TabIndex = 0;
			// 
			// ConfoundsDialog
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
			this.ClientSize = new System.Drawing.Size(221, 82);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.confoundsControl1});
			this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
			this.MaximizeBox = false;
			this.MinimizeBox = false;
			this.Name = "ConfoundsDialog";
			this.ShowInTaskbar = false;
			this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
			this.ResumeLayout(false);

		}
		#endregion
	}
}
